package com.devframe.component.ftlprocess.meta;
/**
 * 对应的 fushionchart 的CHART对象
 * @author  <b>詹保山</b>
 */
public class Chart {
	/**
	 * 相关的CHART swf文件
	 */
	private String chart;
	/**
	 * 配置的CHARTID
	 */
	private String chartId;
	/**
	 * 对应的template
	 */
	private String template;
	/**
	 * falsh 的宽度
	 */
	private Integer width;
	/**
	 * falsh的 高度
	 */
	private Integer height;
	/**
	 * 参数
	 */
	private String params;
	/**
	 * 静态参数
	 */
	private String staticParams="req$Type=chart";
	
	


	public Chart() {
		super();
	}

	public Chart(String chart, String chartId, String template) {
		super();
		this.chart = chart;
		this.chartId = chartId;
		this.template = template;
	}
	

	public Chart(String chart, String chartId, String template, Integer width,
			Integer height) {
		super();
		this.chart = chart;
		this.chartId = chartId;
		this.template = template;
		this.width = width;
		this.height = height;
	}
	
	public String getChart() {
		return chart;
	}

	public void setChart(String chart) {
		this.chart = chart;
	}

	public String getChartId() {
		return chartId;
	}

	public void setChartId(String chartId) {
		this.chartId = chartId;
	}


	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public String getStaticParams() {
		return staticParams;
	}

	public void setStaticParams(String staticParams) {
		if(staticParams!=null && staticParams.length()>0){
			this.staticParams =this.staticParams+"&"+ staticParams;
		}
	}
	
	
	
	


}
